-
Home
-
ShortPixel Image Optimizer – Optimize Images, Convert WebP & AVIF
-
5.5.1
-
Code
-
Classes
- ApiController
| Total Complexity |
126 |
| Dependencies |
5 |
| Dependents |
3 |
| Total lines |
720 |
| Lines of code |
500 |
| Logical lines of code |
277 |
| Comment lines |
86 |
| Methods |
16 |
| Properties |
5 |
Methods 16
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| handleResponse() |
D |
21 |
55 |
174 |
| processMediaItem() |
B |
40 |
19 |
53 |
| handleNewSuccess() |
B |
36 |
16 |
90 |
| getRequest() |
A |
41 |
8 |
55 |
| doRequest() |
A |
46 |
8 |
36 |
| dumpMediaItem() |
S |
55 |
4 |
18 |
| checkFileSizeMargin() |
S |
62 |
4 |
11 |
| returnSuccess() |
S |
62 |
3 |
12 |
| getInstance() |
S |
73 |
2 |
5 |
| __construct() |
S |
71 |
1 |
5 |
| encodeURL() |
S |
69 |
1 |
6 |
| parseResponse() |
S |
73 |
1 |
5 |
| getResultObject() |
S |
67 |
1 |
8 |
| returnFailure() |
S |
67 |
1 |
8 |
| returnRetry() |
S |
69 |
1 |
7 |
| returnOK() |
S |
69 |
1 |
7 |